package com.etc.traval.test;

import com.etc.traval.biz.PlaceBiz;
import com.etc.traval.bizimpl.PlaceBizImpl;
import com.etc.travel.entity.Place;

public class AddPlace {

	public static void main(String[] args) {
		PlaceBiz biz = new PlaceBizImpl();
		Place place = new Place();
		place.setPlace_content(
				"承德避暑山庄又名“承德离宫”或“热河行宫”，位于河北省承德市中心北部，武烈河西岸一带狭长的谷地上，是清代皇帝夏天避暑和处理政务的场所。");
		place.setPlace_name("华中·河北");
		place.setPlace_logo("这是个图片");

		for (int i = 0; i < 50; i++) {
			if (biz.addPlace(place)) {
				System.out.println("添加成功");
			} else {
				System.out.println("添加失败");
			}
		}

	}
}
